package com.djh.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class StoDaily implements Serializable {
    private Long id;

    private Date tran_date;

    private String code;

    private BigDecimal f_end_p;

    private BigDecimal f_start_p;

    private BigDecimal f_low_p;

    private BigDecimal f_high_p;

    private BigDecimal percentchange;

    private BigDecimal start_p;

    private BigDecimal end_p;

    private BigDecimal var_p;

    private BigDecimal low_p;

    private BigDecimal high_p;

    private Long tran_c;

    private BigDecimal tran_p;

    private Date create_time;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getTran_date() {
        return tran_date;
    }

    public void setTran_date(Date tran_date) {
        this.tran_date = tran_date;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public BigDecimal getF_end_p() {
        return f_end_p;
    }

    public void setF_end_p(BigDecimal f_end_p) {
        this.f_end_p = f_end_p;
    }

    public BigDecimal getF_start_p() {
        return f_start_p;
    }

    public void setF_start_p(BigDecimal f_start_p) {
        this.f_start_p = f_start_p;
    }

    public BigDecimal getF_low_p() {
        return f_low_p;
    }

    public void setF_low_p(BigDecimal f_low_p) {
        this.f_low_p = f_low_p;
    }

    public BigDecimal getF_high_p() {
        return f_high_p;
    }

    public void setF_high_p(BigDecimal f_high_p) {
        this.f_high_p = f_high_p;
    }

    public BigDecimal getPercentchange() {
        return percentchange;
    }

    public void setPercentchange(BigDecimal percentchange) {
        this.percentchange = percentchange;
    }

    public BigDecimal getStart_p() {
        return start_p;
    }

    public void setStart_p(BigDecimal start_p) {
        this.start_p = start_p;
    }

    public BigDecimal getEnd_p() {
        return end_p;
    }

    public void setEnd_p(BigDecimal end_p) {
        this.end_p = end_p;
    }

    public BigDecimal getVar_p() {
        return var_p;
    }

    public void setVar_p(BigDecimal var_p) {
        this.var_p = var_p;
    }

    public BigDecimal getLow_p() {
        return low_p;
    }

    public void setLow_p(BigDecimal low_p) {
        this.low_p = low_p;
    }

    public BigDecimal getHigh_p() {
        return high_p;
    }

    public void setHigh_p(BigDecimal high_p) {
        this.high_p = high_p;
    }

    public Long getTran_c() {
        return tran_c;
    }

    public void setTran_c(Long tran_c) {
        this.tran_c = tran_c;
    }

    public BigDecimal getTran_p() {
        return tran_p;
    }

    public void setTran_p(BigDecimal tran_p) {
        this.tran_p = tran_p;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        StoDaily other = (StoDaily) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTran_date() == null ? other.getTran_date() == null : this.getTran_date().equals(other.getTran_date()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getF_end_p() == null ? other.getF_end_p() == null : this.getF_end_p().equals(other.getF_end_p()))
            && (this.getF_start_p() == null ? other.getF_start_p() == null : this.getF_start_p().equals(other.getF_start_p()))
            && (this.getF_low_p() == null ? other.getF_low_p() == null : this.getF_low_p().equals(other.getF_low_p()))
            && (this.getF_high_p() == null ? other.getF_high_p() == null : this.getF_high_p().equals(other.getF_high_p()))
            && (this.getPercentchange() == null ? other.getPercentchange() == null : this.getPercentchange().equals(other.getPercentchange()))
            && (this.getStart_p() == null ? other.getStart_p() == null : this.getStart_p().equals(other.getStart_p()))
            && (this.getEnd_p() == null ? other.getEnd_p() == null : this.getEnd_p().equals(other.getEnd_p()))
            && (this.getVar_p() == null ? other.getVar_p() == null : this.getVar_p().equals(other.getVar_p()))
            && (this.getLow_p() == null ? other.getLow_p() == null : this.getLow_p().equals(other.getLow_p()))
            && (this.getHigh_p() == null ? other.getHigh_p() == null : this.getHigh_p().equals(other.getHigh_p()))
            && (this.getTran_c() == null ? other.getTran_c() == null : this.getTran_c().equals(other.getTran_c()))
            && (this.getTran_p() == null ? other.getTran_p() == null : this.getTran_p().equals(other.getTran_p()))
            && (this.getCreate_time() == null ? other.getCreate_time() == null : this.getCreate_time().equals(other.getCreate_time()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTran_date() == null) ? 0 : getTran_date().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getF_end_p() == null) ? 0 : getF_end_p().hashCode());
        result = prime * result + ((getF_start_p() == null) ? 0 : getF_start_p().hashCode());
        result = prime * result + ((getF_low_p() == null) ? 0 : getF_low_p().hashCode());
        result = prime * result + ((getF_high_p() == null) ? 0 : getF_high_p().hashCode());
        result = prime * result + ((getPercentchange() == null) ? 0 : getPercentchange().hashCode());
        result = prime * result + ((getStart_p() == null) ? 0 : getStart_p().hashCode());
        result = prime * result + ((getEnd_p() == null) ? 0 : getEnd_p().hashCode());
        result = prime * result + ((getVar_p() == null) ? 0 : getVar_p().hashCode());
        result = prime * result + ((getLow_p() == null) ? 0 : getLow_p().hashCode());
        result = prime * result + ((getHigh_p() == null) ? 0 : getHigh_p().hashCode());
        result = prime * result + ((getTran_c() == null) ? 0 : getTran_c().hashCode());
        result = prime * result + ((getTran_p() == null) ? 0 : getTran_p().hashCode());
        result = prime * result + ((getCreate_time() == null) ? 0 : getCreate_time().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", tran_date=").append(tran_date);
        sb.append(", code=").append(code);
        sb.append(", f_end_p=").append(f_end_p);
        sb.append(", f_start_p=").append(f_start_p);
        sb.append(", f_low_p=").append(f_low_p);
        sb.append(", f_high_p=").append(f_high_p);
        sb.append(", percentchange=").append(percentchange);
        sb.append(", start_p=").append(start_p);
        sb.append(", end_p=").append(end_p);
        sb.append(", var_p=").append(var_p);
        sb.append(", low_p=").append(low_p);
        sb.append(", high_p=").append(high_p);
        sb.append(", tran_c=").append(tran_c);
        sb.append(", tran_p=").append(tran_p);
        sb.append(", create_time=").append(create_time);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}